package cn.edu.nju.software.gui;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

	public class StudentsOperation extends JFrame implements ActionListener{
		
		private String username;//�����ͷ�����ͨ�ŵ�ƾ֤
		private UserInstitute uin;//�ӿͻ����жϵ��û�Ժϵ
		
		public String getUsername(){
			return username;
		}
		public void setUsername(String newUserName){
			username = newUserName;
		}
		
		
		public StudentsOperation(String userName){
			super();
		    this.username = userName;
 			JTabbedPane tabbedPane = new JTabbedPane();
	        JPanel panel_cs = new CourseSelection(this);//�����so�������ǩlabel��constructor
	        JPanel panel_info = new PersonalInfo(this);
	        JPanel panel_reset = new ResetCode(this);
		    tabbedPane.add("Course Selection",panel_cs);
		    tabbedPane.add("Personal Information",panel_info);
			tabbedPane.add("Reset Password",panel_reset);
			add(tabbedPane);
			setSize(800, 600);
			setTitle("Students Land");
			setDefaultCloseOperation(EXIT_ON_CLOSE);
			setVisible(true);

		}
		
		//下面的是测试用
		
		
		
		
		public void actionPerformed(ActionEvent e) {
			// TODO Auto-generated method stub
			
		}
	}


